import api from "@/sdk/api/api.js"
export default {
	state:{
		userddressList:[],
	},
	mutations:{
		changeUserAddress(state,userddressList){
			console.log(userddressList);
			state.userddressList = userddressList
		}
	},
	actions:{
		getUserAddress(context){
			api.getUserAddress().then(res=>{
				if(res){
					context.commit("changeUserAddress",res);
				}
			})
		}
	}
}